package com.duyi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/a")
public class RestfulController {


    @RequestMapping("/demo1/{id}")
    @ResponseBody
    public String demo1(@PathVariable Integer id) {

        return "--id =" + id;
    }
}
